home *** CD-ROM | disk | FTP | other *** search
Makefile | 1992-10-29 | 1.8 KB | 90 lines |
- # ##################################################################
- #
- # NCSA HDF Version 3.2 release 2
- # Oct 1992
- # MAKEFILE for testing HDF Version 3.2 release 2
- #
- # ABOUT THIS MAKEFILE
- #
- # This makefile creates HDF3.2 backward compatibility test programs.
- # There are two programs:
- # To remove all object files created by this makefile, enter "make clean".
- #
- # ##################################################################
- #
- # PORTING INSTRUCTIONS
- #
- # You must modify the lines containing the symbol "==>" to make
- # this makefile compatible with your platform.
- #
- # ##################################################################
-
- # ==> specify your machine
- MACHINE=SUN
-
- # ==> specify your fortran compiler
- FC=f77
- FFLAGS= -g
-
- # ==> specify your C compiler
- CC=cc
-
- # ==> where are your hdf.h, hdfi.h and vg.h files located?
- IFLAGS= -I../include -I.
-
- # ==> For Convex, specify CFLAGS as follows:
- # STDFLAG = __STDC__
- # CFLAGS= -g -D${MACHINE} $(IFLAGS) -D${STDFLAG}
-
- # ==> For IRIS4, specify CFLAGS as follows:
- # CFLAGS= -g -cckr
-
- CFLAGS= -g -D${MACHINE} $(IFLAGS)
-
- # ==> where is your HDF3.2 library (libdf.a) located?
- LIBS32= ../lib/libdf.a
-
- RM=/bin/rm
- RMFLAGS=-f
-
- CTESTS= rs3
-
- CHDRS =
- CTSRCS= rs3.c
- CSRCS= transarray.c
-
- CTOBJS= rs3.o
- COBJS= transarray.o
-
- HTESTS=
- HHDRS = hfile.h hdf.h hdfi.h herr.h hproto.h
- HTSRCS=
- HTOBJS=
-
- FTESTS= rs3f
- FSRCS = rs3f.f
- FOBJS = rs3f.o
-
-
- all: objs ctests ftests htests
-
- objs: $(COBJS)
-
- ctests: $(CTESTS)
-
- ftests: $(FTESTS)
-
- htests: $(HTESTS)
-
- transarray.o: transarray.c
- $(CC) -c $(CFLAGS) transarray.c
-
- rs3: rs3.c objs
- $(CC) $(CFLAGS) rs3.c $(COBJS) $(LIBS32) -o rs3
-
- rs3f: rs3f.f objs
- $(FC) $(FFLAGS) rs3f.f $(COBJS) $(LIBS32) -o rs3f
-
- clean:
- rm -f $(CTESTS) $(HTESTS) $(FTESTS)
-